function toggle(id) {
    var state = document.getElementById(id).style.display;
    if (state == 'block') {
        document.getElementById(id).style.display = 'none';
    } else {
        document.getElementById(id).style.display = 'block';
    }
}

function confirmDelete(delUrl) {
    if (confirm("Are you sure you want to delete the course and all the content?")) {
        document.location = delUrl;
    }
}
